package com.school.basic.service;


import com.school.basic.entity.SchoolInfo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface SchoolInfoService {
    // 新增
    SchoolInfo addSchoolInfo(SchoolInfo schoolInfo);
    // 更新
    SchoolInfo updateSchoolInfo(SchoolInfo schoolInfo);
    // 根据ID查看详情
    SchoolInfo getDetailsById(String id);
    // 学校信息状态变更
    void updateStatus(String id, Integer status);
    // 根据ID删除
    void deleteSchoolInfo(String id);
    // 根据ID批量删除
    void deleteSchoolInfoList(String idList);
    // 分页查询
    Page<SchoolInfo> specificPageQuerySchoolInfoList(SchoolInfo schoolInfo, int page, int size);
    // 查询所有
    List<SchoolInfo> findAll();

    SchoolInfo findSchoolByAccountAndPassword(String account, String password);
}
